Terp: Syntax for OWL-friendly SPARQL Queries
نویسندگان
چکیده
Web Ontology Language (OWL) [5] can be seen as an extension of Resource Description Framework (RDF). The primary exchange syntax for OWL is RDF/XML, and every OWL ontology can be represented as an RDF graph. But there is no standard query language specifically for OWL ontologies. The most commonly used Semantic Web query language is SPARQL [7], which is intended to be used for RDF. Roughly speaking, SPARQL is specified as queries matching RDF graphs with simple RDF entailment. However, it allows this definition to be extended to OWL entailment. A semantics for SPARQL compatible with OWL DL has been defined in SPARQL-DL [8] and a similar formalization of OWL-compatible SPARQL semantics is being developed by the W3C’s SPARQL Working Group as part of SPARQL 1.1. The semantics extension of SPARQL allows one to query OWL ontologies and get the expected results with respect to OWL entailments. However, writing SPARQL queries that involve complex OWL expressions ranges from challenging to unpleasant because SPARQL query syntax is based on Turtle [1], which isn’t intended for OWL. SPARQL queries against OWL data have to encode the RDF serialization of OWL expressions: these queries are typically verbose, difficult to write, and difficult to understand. In this paper we present Terp, a new syntax that combines Turtle and Manchester syntaxes to provide maximum legibility and conciseness when querying OWL with SPARQL. More precisely, Terp syntax allows class, property, and data range expressions, expressed in Manchester syntax, to be used inside SPARQL queries. In this paper, we provide examples to demonstrate how Terp reuses existing features from well-known syntaxes to make SPARQL queries of OWL data more concise and more legible.
منابع مشابه
SPARQLAS - Implementing SPARQL Queries with OWL Syntax
Using SPARQL for writing queries on OWL-DL ontologies can be complicated due to its RDF triple semantics. Translating OWL expressions to this semantics is a non-trivial problem. We present SPARQLDL Abstract Syntax (SPARQLAS), a proper subset of SPARQL, to solve this issue by employing the OWL Functional-Style Syntax to compose queries. We illustrate how the translation is made possible by a mod...
متن کاملOn the SPARQL Direct Semantics Entailment Regime for OWL 2 QL
OWL 2 QL is the profile of OWL 2 targeted to Ontology-Based Data Access (OBDA) scenarios, where large amount of data are to be accessed and thus query answering is required to be especially efficient in the size of such data, namely AC0 in data complexity. On the other hand, the syntax and the semantics of the SPARQL query language for OWL 2 is defined by means of the Direct Semantics Entailmen...
متن کاملUsing the relation ontology Metarel for modelling Linked Data as multi-digraphs
The Semantic Web standards OWL and RDF are often used to represent biomedical information as Linked Data, however, the OWL/RDF syntax, which combines both, was never optimised for querying. By combining two formal paradigms for modelling Linked Data, namely multi-digraphs and Description Logic, many precise terms for relations have emerged that are defined in the Metarel relation ontology. They...
متن کاملOptimization of SPARQL by using coreSPARQL
SPARQL is becoming an important query language for RDF data. Query optimization to speed up query processing has been an important research topic for all query languages. In order to optimize SPARQL queries, we suggest a core fragment of the SPARQL language, which we call the coreSPARQL language. coreSPARQL has the same expressive power as SPARQL, but eliminates redundant language constructs of...
متن کاملRegular Paths in SparQL: Querying the NCI Thesaurus
OWL, the Web Ontology Language, provides syntax and semantics for representing knowledge for the semantic web. Many of the constructs of OWL have a basis in the field of description logics. While the formal underpinnings of description logics have lead to a highly computable language, it has come at a cognitive cost. OWL ontologies are often unintuitive to readers lacking a strong logic backgro...
متن کامل